package com.etime.shycourse.dto;

import com.etime.shycourse.pojo.Settlement;
import com.etime.shycourse.pojo.SysUser;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @program: SysUserDto
 * @description: 用户的dto
 * @author: WB
 * @create: 2022-05-24 10:14
 **/
public class SysUserDto extends SysUser {

    // 该user拥有的settlement信息
    private List<Settlement> settlementList;


    //时间区间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date one;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date two;

    public Date getOne() {
        return one;
    }

    public void setOne(Date one) {
        this.one = one;
    }

    public Date getTwo() {
        return two;
    }

    public void setTwo(Date two) {
        this.two = two;
    }

    public List<Settlement> getSettlementList() {
        return settlementList;
    }

    public void setSettlementList(List<Settlement> settlementList) {
        this.settlementList = settlementList;
    }
}
